package com.ruoyi.share.service.impl;

import java.util.List;

import com.ruoyi.share.domain.ShareCallCenter;
import com.ruoyi.share.mapper.ShareCallCenterMapper;
import com.ruoyi.share.service.IShareCallCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 客服中心Service业务层处理
 *
 * @author ruoyi
 * @date 2021-11-16
 */
@Service
public class ShareCallCenterServiceImpl implements IShareCallCenterService
{
    @Autowired
    private ShareCallCenterMapper shareCallCenterMapper;

    /**
     * 查询客服中心
     *
     * @param id 客服中心主键
     * @return 客服中心
     */
    @Override
    public ShareCallCenter selectShareCallCenterById(Long id)
    {
        return shareCallCenterMapper.selectShareCallCenterById(id);
    }

    /**
     * 查询客服中心列表
     *
     * @param shareCallCenter 客服中心
     * @return 客服中心
     */
    @Override
    public List<ShareCallCenter> selectShareCallCenterList(ShareCallCenter shareCallCenter)
    {
        return shareCallCenterMapper.selectShareCallCenterList(shareCallCenter);
    }

    /**
     * 新增客服中心
     *
     * @param shareCallCenter 客服中心
     * @return 结果
     */
    @Override
    public int insertShareCallCenter(ShareCallCenter shareCallCenter)
    {
        return shareCallCenterMapper.insertShareCallCenter(shareCallCenter);
    }

    /**
     * 修改客服中心
     *
     * @param shareCallCenter 客服中心
     * @return 结果
     */
    @Override
    public int updateShareCallCenter(ShareCallCenter shareCallCenter)
    {
        return shareCallCenterMapper.updateShareCallCenter(shareCallCenter);
    }

    /**
     * 批量删除客服中心
     *
     * @param ids 需要删除的客服中心主键
     * @return 结果
     */
    @Override
    public int deleteShareCallCenterByIds(Long[] ids)
    {
        return shareCallCenterMapper.deleteShareCallCenterByIds(ids);
    }

    /**
     * 删除客服中心信息
     *
     * @param id 客服中心主键
     * @return 结果
     */
    @Override
    public int deleteShareCallCenterById(Long id)
    {
        return shareCallCenterMapper.deleteShareCallCenterById(id);
    }
}
